home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 105 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. From: jimmc@ibm.net (Jim McElroy)
  2. Message-ID: <4e21kf$3ev0@news-s01.ny.us.ibm.net>
  3. X-Original-Date: 23 Jan 1996 07:10:07 GMT
  4. Path: in1.uu.net!bounce-back
  5. Date: 23 Jan 96 09:52:42 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Organization: -
  8. Newsgroups: comp.std.c++
  9. Subject: Re: Exception-safe STL (was: STL still in standard)
  10. References: <4dd7on$djk@rc1.vub.ac.be> <4dgrb4$a2e@engnews1.Eng.Sun.COM> <9601171106.AA12639@lts.sel.alcatel.de> <4du1v6$h74@jupiter.SJSU.EDU>
  11. Reply-To: jimmc@ibm.net (Jim McElroy)
  12. X-Newsreader: IBM NewsReader/2 v1.03
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBFAgUBMQSwDuEDnX0m9pzZAQF4NwGAmSo6E1pL9ALdvhon3etyuurZkx8fRzsl
  15.     8HU+KrjZcnmZ8Rg+E9O2uaB1WbMQOMQK
  16.     =EPeB
  17.  
  18. In <4du1v6$h74@jupiter.SJSU.EDU>, horstman@jupiter.SJSU.EDU
  19. (Cay S. Horstmann) writes:
  20.  
  21. >I am not sure exceptions are the way to go--the great value of a
  22. >standard is that it is, well, standard. STL may not be the greatest
  23. >library on the planet, but it is certainly good enough, and it is
  24. >standard. I don't like the idea of tinkering with the interface by
  25. >adding exceptions.
  26.  
  27. OK, but what about guarantees on the behaviour of a container when, 
  28. say, the constructor of a contained object throws an exception?  Can
  29. anything then be said about the state of the container?  Can the 
  30. container itself (with, perhaps, other contained elements) be restored
  31. to service?  Can it even be cleaned up, or will unrecoverable memory
  32. or other resources be left behind?
  33.  
  34. I think this is a hard problem.
  35. ----
  36. Jim McElroy
  37. Bellevue, Washington
  38. ---
  39. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  40.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  41.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  42.